home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / c / stormamiga_lib-v45_00d / include / stdlib_stormamiga.h < prev    next >
C/C++ Source or Header  |  2000-02-28  |  911b  |  44 lines

  1. #ifndef  STDLIB_STORMAMIGA_H
  2. #define  STDLIB_STORMAMIGA_H
  3.  
  4. /*
  5. **    $VER: stdlib_stormamiga.h 1.0 (18.09.98)
  6. **             Includes Release 45.00
  7. **
  8. **    Copyright © 1996/2000 by CyberdyneSystems
  9. **
  10. **            written by Matthias Henze
  11. **               All Rights Reserved
  12. */
  13.  
  14. #ifndef  STORMAMIGA_H
  15.   #include <stormamiga.h>
  16. #endif
  17. #ifndef  _INCLUDE_STDLIB_H
  18.   #include <stdlib.h>
  19. #endif
  20. #ifndef  _INCLUDE_SIGNAL_H
  21.   #include <signal.h>
  22. #endif
  23.  
  24. #ifdef STORMAMIGA_INLINE
  25.  
  26. /*----- ANSI C-functions -----*/
  27.  
  28. #define atoi             atol
  29.  
  30. __inline long atol       (cchar *s)
  31. { return strtol          (s, NULL, 10); }
  32.  
  33. __inline llong atoll     (cchar *s)
  34. { return strtoll         (s, NULL, 10); }
  35.  
  36. __inline double atof     (cchar *s)
  37. { return strtod          (s, NULL); }
  38.  
  39. __inline void abort      (void)
  40. { raise                  (SIGABRT); }
  41. #endif  /* STORMAMIGA_INLINE */
  42.  
  43. #endif  /* STDLIB_STORMAMIGA_H */
  44.